package cn.lili.controller.order;

import cn.lili.common.utils.ResultUtil;
import cn.lili.common.vo.ResultMessage;
import cn.lili.modules.order.order.entity.dos.FlowReviewLog;
import cn.lili.modules.order.order.entity.dto.FlowReviewLogQueryDTO;
import cn.lili.modules.order.order.service.FlowReviewLogService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 异常流水日志
 *
 * @author liushuai(liushuai711 @ gmail.com)
 * @version v4.0
 * @Description:
 * @since 2023/4/14 16:39
 */
@RestController
@RequestMapping("/order/flow-review-log")
@Api(tags = "异常流水日志API")
@RequiredArgsConstructor
public class FlowReviewLogController {

    private final FlowReviewLogService flowReviewLogService;


    @ApiOperation(value = "分页获取异常流水操作日志")
    @GetMapping
    public ResultMessage<Page<FlowReviewLog>> page(FlowReviewLogQueryDTO flowReviewLogQueryDTO) {
        return ResultUtil.data(flowReviewLogService.getReviewLogs(flowReviewLogQueryDTO));
    }

}
